package com.example.g7640.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
public class CustomerDto {

    /**
     * Primary Key
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * Customer Name
     */
    private String name;

    /**
     * Customer Account
     */
    private String account;

    /**
     * Customer Password
     */
    private String password;

    /**
     * 默认值为false，逻辑上用户不能直接删除，需要保留其记录
     */
    private String deleted;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt = LocalDateTime.now();

}
